<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<%@include file="/template/basic.jspf"%>
</head>
<body>
	<div class="wrap">
		<div class="row-fluid panel panel-default">
			<div class="panel-body">
				<div class="row-fluid">
					<form action="form" method="post" id="form" name="form"
						action="${ctx}/roleInfo/editEntity.shtml" class="form-horizontal">
						
						<div class="form-group">
							<label class="col-xs-2 control-label">角色名称</label>
							<div class="col-xs-8">
								<input type="hidden" value="${role.role_id}"
									name="sysRoleFormMap.role_id" id="role_id"> <input
									type="text" class="form-control" placeholder="请输入名称"
									name="sysRoleFormMap.role_name" required-message="名称格式不正确"
									check-type="required " value="${role.role_name}" maxlength="15">
							</div>
						</div>
						
						<c:if test="${empty  role.role_code }">
						<div class="form-group">
							<label class="col-xs-2 control-label">角色标识</label>
							<div class="col-xs-8">
								<input type="text" class="form-control" id="code_" placeholder="请输入标识"
									name="sysRoleFormMap.role_code" required-message="标识格式不正确"
									check-type="required" value="${role.role_code}" maxlength="20">
							</div>
						</div>				
						</c:if>
						
						<c:if test="${!empty  role.role_code }">
						<div class="form-group">
							<label class="col-xs-2 control-label">角色标识</label>
							<div class="col-xs-8">
								<input type="text" class="form-control" id="code_" placeholder="请输入标识"
									name="sysRoleFormMap.role_code" required-message="标识格式不正确"
									check-type="required" value="${role.role_code}" maxlength="20" readonly="readonly">
							</div>
						</div>				
						</c:if>
						
						<div class="form-group">
							<label class="col-xs-2 control-label">排序</label>
							<div class="col-xs-8">
								<input type="text" class="form-control"
									name="sysRoleFormMap.sequence" value="${role.sequence }" maxlength="5" required-message="请输入数值型" check-type="required number"/>
							</div>
						</div>
						
						<div class="form-group">
							<label class="col-xs-2 control-label">描述</label>
							<div class="col-xs-8">
								<input type="text" class="form-control" placeholder="描述"
									name="sysRoleFormMap.description" value="${role.description }" maxlength="20"/>
							</div>
						</div>

						<div class="form-group">
							<label class="col-xs-2 control-label">是否有效</label>
							<div class="col-xs-8">
								<select name="sysRoleFormMap.state" class="form-control">
									<option value="0"
										<c:if test="${role.state==0 }"> selected="selected"</c:if>>是</option>
									<option value="1"
										<c:if test="${role.state==1 }"> selected="selected"</c:if>>否</option>
								</select>
							</div>
						</div>
					</form>
				</div>
			</div>
		</div>
	</div>
	<script type="text/javascript" src="${ctx}/js/system/role/info.js"></script>

</body>
</html>